package com.itheima.hello;

import java.util.Scanner;

public class Test3{
    public static void main(String[] args){

        Scanner sc = new Scanner(System.in);

            System.out.println("请您输入一个整数：");
        int a = sc.nextInt();

            System.out.println("请您再输入一个整数：");
        int b = sc.nextInt();

            System.out.println("请您输入最后一个整数：");
        int c = sc.nextInt();

        int temp = a > b ? a : b;
        int max = temp > c ? temp : c;
        int max2 = a > b ? a : b > c ? a > b ? a : b : c;
        System.out.println("最大值是：" + max);
        System.out.println("装逼写法的较大值是：" + max2);
    }
}